#pragma once

#include <MyFC/Button.h>

namespace My {

class ColorBox : public Button, public Widget {
protected:
	CSize		m_Size;
	bool		m_Enabled;
	int			m_Alignment;
public:
	ColorBox();
public:
	int GetAlignment() const
		{ return m_Alignment; }
	void SetAlignment(int);
	virtual CSize GetPreferredSize() const;
public:
	virtual bool GetColor(COLORREF &) const = 0;
	virtual void SetColor(COLORREF) = 0;
public:
	virtual void HandlePaint(CDC * pDC, const CRect & r);
	virtual void HandleClick();
};

} // My
